@ var _user = c.currentUser(request, servlet.response);
<!-- 
<div class="-navbar">
    <div class="-navbar-inner">
        <ul class="clearfix -nav">
            <li class="pull-left"><a href="${ctxPath}/">首页</a></li>
            <li class="pull-left">
                <a href="${ctxPath}/topic/hot">浏览最多</a>
            </li>
            <li class="pull-left">
                <a href="${ctxPath}/topic/nice">精华帖子</a>
            </li>
            <li class="pull-left">
                <a href="${ctxPath}/topic/add">发表新话题</a>
            </li>
            <li class="pull-left">
                <a href="${ctxPath}/leaveMsg" title="欢迎提出建议(●Ｕ_Ｕ●)">留言</a>
            </li>
        </ul>
    </div>
</div>
 -->
 <div class="header">
  <div class="main">
    <a class="logo" href="/" title="Fly">Fly社区</a>
    <div class="nav">
      <a class="nav-this" href="/">
        <i class="iconfont icon-wenda"></i>问答
      </a>
      <a href="#">
        <i class="iconfont icon-ui"></i>框架
      </a>
    </div>
    
    <div class="nav-user">
      <!-- 未登入状态 -->
       @ if(_user! == null){
             <a class="unlogin" href="${ctxPath}/toLogin"><i class="iconfont icon-touxiang"></i></a>
		      <span><a href="${ctxPath}/toLogin">登入</a><a href="${ctxPath}/regist">注册</a></span>
		      <p class="out-login">
		        <a href="${ctxPath}/oauth/toQQ" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})" class="iconfont icon-qq" title="QQ登入"></a>
		        <a href="${ctxPath}/oauth/toSina" onclick="layer.msg('正在通过微博登入', {icon:16, shade: 0.1, time:0})" class="iconfont icon-weibo" title="微博登入"></a>
		      </p>   
        @ }else{
          <a class="avatar" href="${ctxPath}/user/${_user.id!}">
	        <img src="${_user.headImg!}">
	        <cite>${_user.username!}</cite>
	        <i>${_user.rank!}</i>
	      </a>
	      <div class="nav">
	        <a href="${ctxPath}/user/edit/${_user.id!}"><i class="iconfont icon-shezhi"></i>设置</a>
	        <a href="${ctxPath}/user/logout"><i class="iconfont icon-tuichu" style="top: 0; font-size: 22px;"></i>退了</a>
	      </div>
            
        @ }

    </div>
  </div>
</div>